import unittest
import pymysql


class MyDB(unittest.TestCase):
    # 1、数据库连接信息配置
    def setUp(self) -> None:
        # 2、数据库连接
        self.db = pymysql.Connect(host='10.59.9.19', user="yidongceshi", password='10.59.9.19', )
        print("初始化")

    # 9、关闭数据库连接
    def tearDown(self) -> None:
        self.db.close()
        print("结束")



